home *** CD-ROM | disk | FTP | other *** search
- #ifndef _INLINE_EXEC_H
- #define _INLINE_EXEC_H
-
- #ifndef __INLINE_MACROS_H
- #include <inline/macros.h>
- #endif
-
- #ifndef EXEC_BASE_NAME
- #define EXEC_BASE_NAME SysBase
- #endif
-
- #define Supervisor(userFunction) \
- LP1A5FP(0x1E, ULONG, Supervisor, __fpt, userFunction, d7, \
- , EXEC_BASE_NAME, ULONG (*__fpt)())
-
- #define InitCode(startClass, version) \
- LP2NR(0x48, InitCode, ULONG, startClass, d0, ULONG, version, d1, \
- , EXEC_BASE_NAME)
-
- #define InitStruct(initTable, memory, size) \
- LP3NR(0x4E, InitStruct, CONST APTR, initTable, a1, APTR, memory, a2, ULONG, size, d0, \
- , EXEC_BASE_NAME)
-
- #define MakeLibrary(funcInit, structInit, libInit, dataSize, segList) \
- LP5FP(0x54, struct Library *, MakeLibrary, CONST APTR, funcInit, a0, CONST APTR, structInit, a1, __fpt, libInit, a2, ULONG, dataSize, d0, ULONG, segList, d1, \
- , EXEC_BASE_NAME, ULONG (*__fpt)())
-
- #define MakeFunctions(target, functionArray, funcDispBase) \
- LP3NR(0x5A, MakeFunctions, APTR, target, a0, CONST APTR, functionArray, a1, ULONG, funcDispBase, a2, \
- , EXEC_BASE_NAME)
-
- #define FindResident(name) \
- LP1(0x60, struct Resident *, FindResident, CONST_STRPTR, name, a1, \
- , EXEC_BASE_NAME)
-
- #define InitResident(resident, segList) \
- LP2(0x66, APTR, InitResident, CONST struct Resident *, resident, a1, ULONG, segList, d1, \
- , EXEC_BASE_NAME)
-
- #define Alert(alertNum) \
- LP1NR(0x6C, Alert, ULONG, alertNum, d7, \
- , EXEC_BASE_NAME)
-
- #define Debug(flags) \
- LP1NR(0x72, Debug, ULONG, flags, d0, \
- , EXEC_BASE_NAME)
-
- #define Disable() \
- LP0NR(0x78, Disable, \
- , EXEC_BASE_NAME)
-
- #define Enable() \
- LP0NR(0x7E, Enable, \
- , EXEC_BASE_NAME)
-
- #define Forbid() \
- LP0NR(0x84, Forbid, \
- , EXEC_BASE_NAME)
-
- #define Permit() \
- LP0NR(0x8A, Permit, \
- , EXEC_BASE_NAME)
-
- #define SetSR(newSR, mask) \
- LP2(0x90, ULONG, SetSR, ULONG, newSR, d0, ULONG, mask, d1, \
- , EXEC_BASE_NAME)
-
- #define SuperState() \
- LP0(0x96, APTR, SuperState, \
- , EXEC_BASE_NAME)
-
- #define UserState(sysStack) \
- LP1NR(0x9C, UserState, APTR, sysStack, d0, \
- , EXEC_BASE_NAME)
-
- #define SetIntVector(intNumber, interrupt) \
- LP2(0xA2, struct Interrupt *, SetIntVector, LONG, intNumber, d0, CONST struct Interrupt *, interrupt, a1, \
- , EXEC_BASE_NAME)
-
- #define AddIntServer(intNumber, interrupt) \
- LP2NR(0xA8, AddIntServer, LONG, intNumber, d0, struct Interrupt *, interrupt, a1, \
- , EXEC_BASE_NAME)
-
- #define RemIntServer(intNumber, interrupt) \
- LP2NR(0xAE, RemIntServer, LONG, intNumber, d0, struct Interrupt *, interrupt, a1, \
- , EXEC_BASE_NAME)
-
- #define Cause(interrupt) \
- LP1NR(0xB4, Cause, struct Interrupt *, interrupt, a1, \
- , EXEC_BASE_NAME)
-
- #define Allocate(freeList, byteSize) \
- LP2(0xBA, APTR, Allocate, struct MemHeader *, freeList, a0, ULONG, byteSize, d0, \
- , EXEC_BASE_NAME)
-
- #define Deallocate(freeList, memoryBlock, byteSize) \
- LP3NR(0xC0, Deallocate, struct MemHeader *, freeList, a0, APTR, memoryBlock, a1, ULONG, byteSize, d0, \
- , EXEC_BASE_NAME)
-
- #define AllocMem(byteSize, requirements) \
- LP2(0xC6, APTR, AllocMem, ULONG, byteSize, d0, ULONG, requirements, d1, \
- , EXEC_BASE_NAME)
-
- #define AllocAbs(byteSize, location) \
- LP2(0xCC, APTR, AllocAbs, ULONG, byteSize, d0, APTR, location, a1, \
- , EXEC_BASE_NAME)
-
- #define FreeMem(memoryBlock, byteSize) \
- LP2NR(0xD2, FreeMem, APTR, memoryBlock, a1, ULONG, byteSize, d0, \
- , EXEC_BASE_NAME)
-
- #define AvailMem(requirements) \
- LP1(0xD8, ULONG, AvailMem, ULONG, requirements, d1, \
- , EXEC_BASE_NAME)
-
- #define AllocEntry(entry) \
- LP1(0xDE, struct MemList *, AllocEntry, struct MemList *, entry, a0, \
- , EXEC_BASE_NAME)
-
- #define FreeEntry(entry) \
- LP1NR(0xE4, FreeEntry, struct MemList *, entry, a0, \
- , EXEC_BASE_NAME)
-
- #define Insert(list, node, pred) \
- LP3NR(0xEA, Insert, struct List *, list, a0, struct Node *, node, a1, struct Node *, pred, a2, \
- , EXEC_BASE_NAME)
-
- #define AddHead(list, node) \
- LP2NR(0xF0, AddHead, struct List *, list, a0, struct Node *, node, a1, \
- , EXEC_BASE_NAME)
-
- #define AddTail(list, node) \
- LP2NR(0xF6, AddTail, struct List *, list, a0, struct Node *, node, a1, \
- , EXEC_BASE_NAME)
-
- #define Remove(node) \
- LP1NR(0xFC, Remove, struct Node *, node, a1, \
- , EXEC_BASE_NAME)
-
- #define RemHead(list) \
- LP1(0x102, struct Node *, RemHead, struct List *, list, a0, \
- , EXEC_BASE_NAME)
-
- #define RemTail(list) \
- LP1(0x108, struct Node *, RemTail, struct List *, list, a0, \
- , EXEC_BASE_NAME)
-
- #define Enqueue(list, node) \
- LP2NR(0x10E, Enqueue, struct List *, list, a0, struct Node *, node, a1, \
- , EXEC_BASE_NAME)
-
- #define FindName(list, name) \
- LP2(0x114, struct Node *, FindName, struct List *, list, a0, CONST_STRPTR, name, a1, \
- , EXEC_BASE_NAME)
-
- #define AddTask(task, initPC, finalPC) \
- LP3(0x11A, APTR, AddTask, struct Task *, task, a1, CONST APTR, initPC, a2, CONST APTR, finalPC, a3, \
- , EXEC_BASE_NAME)
-
- #define RemTask(task) \
- LP1NR(0x120, RemTask, struct Task *, task, a1, \
- , EXEC_BASE_NAME)
-
- #define FindTask(name) \
- LP1(0x126, struct Task *, FindTask, CONST_STRPTR, name, a1, \
- , EXEC_BASE_NAME)
-
- #define SetTaskPri(task, priority) \
- LP2(0x12C, BYTE, SetTaskPri, struct Task *, task, a1, LONG, priority, d0, \
- , EXEC_BASE_NAME)
-
- #define SetSignal(newSignals, signalSet) \
- LP2(0x132, ULONG, SetSignal, ULONG, newSignals, d0, ULONG, signalSet, d1, \
- , EXEC_BASE_NAME)
-
- #define SetExcept(newSignals, signalSet) \
- LP2(0x138, ULONG, SetExcept, ULONG, newSignals, d0, ULONG, signalSet, d1, \
- , EXEC_BASE_NAME)
-
- #define Wait(signalSet) \
- LP1(0x13E, ULONG, Wait, ULONG, signalSet, d0, \
- , EXEC_BASE_NAME)
-
- #define Signal(task, signalSet) \
- LP2NR(0x144, Signal, struct Task *, task, a1, ULONG, signalSet, d0, \
- , EXEC_BASE_NAME)
-
- #define AllocSignal(signalNum) \
- LP1(0x14A, BYTE, AllocSignal, LONG, signalNum, d0, \
- , EXEC_BASE_NAME)
-
- #define FreeSignal(signalNum) \
- LP1NR(0x150, FreeSignal, LONG, signalNum, d0, \
- , EXEC_BASE_NAME)
-
- #define AllocTrap(trapNum) \
- LP1(0x156, LONG, AllocTrap, LONG, trapNum, d0, \
- , EXEC_BASE_NAME)
-
- #define FreeTrap(trapNum) \
- LP1NR(0x15C, FreeTrap, LONG, trapNum, d0, \
- , EXEC_BASE_NAME)
-
- #define AddPort(port) \
- LP1NR(0x162, AddPort, struct MsgPort *, port, a1, \
- , EXEC_BASE_NAME)
-
- #define RemPort(port) \
- LP1NR(0x168, RemPort, struct MsgPort *, port, a1, \
- , EXEC_BASE_NAME)
-
- #define PutMsg(port, message) \
- LP2NR(0x16E, PutMsg, struct MsgPort *, port, a0, struct Message *, message, a1, \
- , EXEC_BASE_NAME)
-
- #define GetMsg(port) \
- LP1(0x174, struct Message *, GetMsg, struct MsgPort *, port, a0, \
- , EXEC_BASE_NAME)
-
- #define ReplyMsg(message) \
- LP1NR(0x17A, ReplyMsg, struct Message *, message, a1, \
- , EXEC_BASE_NAME)
-
- #define WaitPort(port) \
- LP1(0x180, struct Message *, WaitPort, struct MsgPort *, port, a0, \
- , EXEC_BASE_NAME)
-
- #define FindPort(name) \
- LP1(0x186, struct MsgPort *, FindPort, CONST_STRPTR, name, a1, \
- , EXEC_BASE_NAME)
-
- #define AddLibrary(library) \
- LP1NR(0x18C, AddLibrary, struct Library *, library, a1, \
- , EXEC_BASE_NAME)
-
- #define RemLibrary(library) \
- LP1NR(0x192, RemLibrary, struct Library *, library, a1, \
- , EXEC_BASE_NAME)
-
- #define OldOpenLibrary(libName) \
- LP1(0x198, struct Library *, OldOpenLibrary, CONST_STRPTR, libName, a1, \
- , EXEC_BASE_NAME)
-
- #define CloseLibrary(library) \
- LP1NR(0x19E, CloseLibrary, struct Library *, library, a1, \
- , EXEC_BASE_NAME)
-
- #define SetFunction(library, funcOffset, newFunction) \
- LP3FP(0x1A4, APTR, SetFunction, struct Library *, library, a1, LONG, funcOffset, a0, __fpt, newFunction, d0, \
- , EXEC_BASE_NAME, ULONG (*__fpt)())
-
- #define SumLibrary(library) \
- LP1NR(0x1AA, SumLibrary, struct Library *, library, a1, \
- , EXEC_BASE_NAME)
-
- #define AddDevice(device) \
- LP1NR(0x1B0, AddDevice, struct Device *, device, a1, \
- , EXEC_BASE_NAME)
-
- #define RemDevice(device) \
- LP1NR(0x1B6, RemDevice, struct Device *, device, a1, \
- , EXEC_BASE_NAME)
-
- #define OpenDevice(devName, unit, ioRequest, flags) \
- LP4(0x1BC, BYTE, OpenDevice, CONST_STRPTR, devName, a0, ULONG, unit, d0, struct IORequest *, ioRequest, a1, ULONG, flags, d1, \
- , EXEC_BASE_NAME)
-
- #define CloseDevice(ioRequest) \
- LP1NR(0x1C2, CloseDevice, struct IORequest *, ioRequest, a1, \
- , EXEC_BASE_NAME)
-
- #define DoIO(ioRequest) \
- LP1(0x1C8, BYTE, DoIO, struct IORequest *, ioRequest, a1, \
- , EXEC_BASE_NAME)
-
- #define SendIO(ioRequest) \
- LP1NR(0x1CE, SendIO, struct IORequest *, ioRequest, a1, \
- , EXEC_BASE_NAME)
-
- #define CheckIO(ioRequest) \
- LP1(0x1D4, struct IORequest *, CheckIO, struct IORequest *, ioRequest, a1, \
- , EXEC_BASE_NAME)
-
- #define WaitIO(ioRequest) \
- LP1(0x1DA, BYTE, WaitIO, struct IORequest *, ioRequest, a1, \
- , EXEC_BASE_NAME)
-
- #define AbortIO(ioRequest) \
- LP1NR(0x1E0, AbortIO, struct IORequest *, ioRequest, a1, \
- , EXEC_BASE_NAME)
-
- #define AddResource(resource) \
- LP1NR(0x1E6, AddResource, APTR, resource, a1, \
- , EXEC_BASE_NAME)
-
- #define RemResource(resource) \
- LP1NR(0x1EC, RemResource, APTR, resource, a1, \
- , EXEC_BASE_NAME)
-
- #define OpenResource(resName) \
- LP1(0x1F2, APTR, OpenResource, CONST_STRPTR, resName, a1, \
- , EXEC_BASE_NAME)
-
- #define RawDoFmt(formatString, dataStream, putChProc, putChData) \
- LP4FP(0x20A, APTR, RawDoFmt, CONST_STRPTR, formatString, a0, CONST APTR, dataStream, a1, __fpt, putChProc, a2, APTR, putChData, a3, \
- , EXEC_BASE_NAME, VOID (*__fpt)())
-
- #define GetCC() \
- LP0(0x210, ULONG, GetCC, \
- , EXEC_BASE_NAME)
-
- #define TypeOfMem(address) \
- LP1(0x216, ULONG, TypeOfMem, CONST APTR, address, a1, \
- , EXEC_BASE_NAME)
-
- #define Procure(sigSem, bidMsg) \
- LP2(0x21C, ULONG, Procure, struct SignalSemaphore *, sigSem, a0, struct SemaphoreMessage *, bidMsg, a1, \
- , EXEC_BASE_NAME)
-
- #define Vacate(sigSem, bidMsg) \
- LP2NR(0x222, Vacate, struct SignalSemaphore *, sigSem, a0, struct SemaphoreMessage *, bidMsg, a1, \
- , EXEC_BASE_NAME)
-
- #define OpenLibrary(libName, version) \
- LP2(0x228, struct Library *, OpenLibrary, CONST_STRPTR, libName, a1, ULONG, version, d0, \
- , EXEC_BASE_NAME)
-
- #define InitSemaphore(sigSem) \
- LP1NR(0x22E, InitSemaphore, struct SignalSemaphore *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define ObtainSemaphore(sigSem) \
- LP1NR(0x234, ObtainSemaphore, struct SignalSemaphore *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define ReleaseSemaphore(sigSem) \
- LP1NR(0x23A, ReleaseSemaphore, struct SignalSemaphore *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define AttemptSemaphore(sigSem) \
- LP1(0x240, ULONG, AttemptSemaphore, struct SignalSemaphore *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define ObtainSemaphoreList(sigSem) \
- LP1NR(0x246, ObtainSemaphoreList, struct List *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define ReleaseSemaphoreList(sigSem) \
- LP1NR(0x24C, ReleaseSemaphoreList, struct List *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define FindSemaphore(name) \
- LP1(0x252, struct SignalSemaphore *, FindSemaphore, STRPTR, name, a1, \
- , EXEC_BASE_NAME)
-
- #define AddSemaphore(sigSem) \
- LP1NR(0x258, AddSemaphore, struct SignalSemaphore *, sigSem, a1, \
- , EXEC_BASE_NAME)
-
- #define RemSemaphore(sigSem) \
- LP1NR(0x25E, RemSemaphore, struct SignalSemaphore *, sigSem, a1, \
- , EXEC_BASE_NAME)
-
- #define SumKickData() \
- LP0(0x264, ULONG, SumKickData, \
- , EXEC_BASE_NAME)
-
- #define AddMemList(size, attributes, pri, base, name) \
- LP5NR(0x26A, AddMemList, ULONG, size, d0, ULONG, attributes, d1, LONG, pri, d2, APTR, base, a0, CONST_STRPTR, name, a1, \
- , EXEC_BASE_NAME)
-
- #define CopyMem(source, dest, size) \
- LP3NR(0x270, CopyMem, CONST APTR, source, a0, APTR, dest, a1, ULONG, size, d0, \
- , EXEC_BASE_NAME)
-
- #define CopyMemQuick(source, dest, size) \
- LP3NR(0x276, CopyMemQuick, CONST APTR, source, a0, APTR, dest, a1, ULONG, size, d0, \
- , EXEC_BASE_NAME)
-
- #define CacheClearU() \
- LP0NR(0x27C, CacheClearU, \
- , EXEC_BASE_NAME)
-
- #define CacheClearE(address, length, caches) \
- LP3NR(0x282, CacheClearE, APTR, address, a0, ULONG, length, d0, ULONG, caches, d1, \
- , EXEC_BASE_NAME)
-
- #define CacheControl(cacheBits, cacheMask) \
- LP2(0x288, ULONG, CacheControl, ULONG, cacheBits, d0, ULONG, cacheMask, d1, \
- , EXEC_BASE_NAME)
-
- #define CreateIORequest(port, size) \
- LP2(0x28E, APTR, CreateIORequest, CONST struct MsgPort *, port, a0, ULONG, size, d0, \
- , EXEC_BASE_NAME)
-
- #define DeleteIORequest(iorequest) \
- LP1NR(0x294, DeleteIORequest, APTR, iorequest, a0, \
- , EXEC_BASE_NAME)
-
- #define CreateMsgPort() \
- LP0(0x29A, struct MsgPort *, CreateMsgPort, \
- , EXEC_BASE_NAME)
-
- #define DeleteMsgPort(port) \
- LP1NR(0x2A0, DeleteMsgPort, struct MsgPort *, port, a0, \
- , EXEC_BASE_NAME)
-
- #define ObtainSemaphoreShared(sigSem) \
- LP1NR(0x2A6, ObtainSemaphoreShared, struct SignalSemaphore *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define AllocVec(byteSize, requirements) \
- LP2(0x2AC, APTR, AllocVec, ULONG, byteSize, d0, ULONG, requirements, d1, \
- , EXEC_BASE_NAME)
-
- #define FreeVec(memoryBlock) \
- LP1NR(0x2B2, FreeVec, APTR, memoryBlock, a1, \
- , EXEC_BASE_NAME)
-
- #define CreatePool(requirements, puddleSize, threshSize) \
- LP3(0x2B8, APTR, CreatePool, ULONG, requirements, d0, ULONG, puddleSize, d1, ULONG, threshSize, d2, \
- , EXEC_BASE_NAME)
-
- #define DeletePool(poolHeader) \
- LP1NR(0x2BE, DeletePool, APTR, poolHeader, a0, \
- , EXEC_BASE_NAME)
-
- #define AllocPooled(poolHeader, memSize) \
- LP2(0x2C4, APTR, AllocPooled, APTR, poolHeader, a0, ULONG, memSize, d0, \
- , EXEC_BASE_NAME)
-
- #define FreePooled(poolHeader, memory, memSize) \
- LP3NR(0x2CA, FreePooled, APTR, poolHeader, a0, APTR, memory, a1, ULONG, memSize, d0, \
- , EXEC_BASE_NAME)
-
- #define AttemptSemaphoreShared(sigSem) \
- LP1(0x2D0, ULONG, AttemptSemaphoreShared, struct SignalSemaphore *, sigSem, a0, \
- , EXEC_BASE_NAME)
-
- #define ColdReboot() \
- LP0NR(0x2D6, ColdReboot, \
- , EXEC_BASE_NAME)
-
- #define StackSwap(newStack) \
- LP1NR(0x2DC, StackSwap, struct StackSwapStruct *, newStack, a0, \
- , EXEC_BASE_NAME)
-
- #define ChildFree(tid) \
- LP1NR(0x2E2, ChildFree, APTR, tid, d0, \
- , EXEC_BASE_NAME)
-
- #define ChildOrphan(tid) \
- LP1NR(0x2E8, ChildOrphan, APTR, tid, d0, \
- , EXEC_BASE_NAME)
-
- #define ChildStatus(tid) \
- LP1NR(0x2EE, ChildStatus, APTR, tid, d0, \
- , EXEC_BASE_NAME)
-
- #define ChildWait(tid) \
- LP1NR(0x2F4, ChildWait, APTR, tid, d0, \
- , EXEC_BASE_NAME)
-
- #define CachePreDMA(address, length, flags) \
- LP3(0x2FA, APTR, CachePreDMA, CONST APTR, address, a0, ULONG *, length, a1, ULONG, flags, d0, \
- , EXEC_BASE_NAME)
-
- #define CachePostDMA(address, length, flags) \
- LP3NR(0x300, CachePostDMA, CONST APTR, address, a0, ULONG *, length, a1, ULONG, flags, d0, \
- , EXEC_BASE_NAME)
-
- #define AddMemHandler(memhand) \
- LP1NR(0x306, AddMemHandler, struct Interrupt *, memhand, a1, \
- , EXEC_BASE_NAME)
-
- #define RemMemHandler(memhand) \
- LP1NR(0x30C, RemMemHandler, struct Interrupt *, memhand, a1, \
- , EXEC_BASE_NAME)
-
- #define ObtainQuickVector(interruptCode) \
- LP1(0x312, ULONG, ObtainQuickVector, APTR, interruptCode, a0, \
- , EXEC_BASE_NAME)
-
- #endif /* _INLINE_EXEC_H */
-